package Lab02.Q16;
class Weight{
    private int weight;
    public void SetWeight(int num){
        this.weight=num;
        //weight=num
    }
    public void Change(int change){
        weight=weight+change;
    }
    public int Show(){
        return weight;
    }
}
public class Question16{
    public static void main(String[] args) {
        Weight XiaoWang;
        XiaoWang=new Weight();
        XiaoWang.SetWeight(70);
        System.out.printf("现在重%dkg%n", XiaoWang.Show());
        XiaoWang.Change(-25);
        System.out.printf("现在重%dkg%n", XiaoWang.Show());
    }
}